 <!--右侧内容开始-->
<div class="fadeIn">
<br/>
<ol class="breadcrumb">
<li class="active"><span class="glyphicon glyphicon-home" style="color:#23527c"></span>&nbsp;<mainpage></mainpage></li>
<li class="active">运维工作台 / 参数配置管理 / 规则参数管理 / 重复过滤管理</li>
</ol>

<div class="rightbar"> 
    <div id="serviceEnd" class="showEle sign1">
        <form action="repeatRule/out-excel" method="post" id="form" name="myform">
        <div class="left marR10 marT15">
          <span class="search-name">业务端名称</span>
            <select class="form-control1 svrNodeName" ng-change='getSms()'  ng-model="searchData.svrNode" name="svrNode">
                <option value="">全部</option>
                <option value={{row.SVR_NODE}} ng-repeat="row in listData1">{{row.SVR_NODE_NAME}}</option>
            </select>
        </div>
        <div class="left marT15 marR10">
          <span class="search-name">业务类型名称</span>
            <select class="form-control1 svrNode" ng-model="searchData.serviceCode" name="serviceCode">
                <option value="">全部</option>
                <option value={{row.serviceCode}} ng-repeat="row in listData2">{{row.serviceName}}</option>
            </select>
        </div>
        </form>
        <button class="btn btn-sm btn-primary left marR10 marT15" id="search" ng-click='search()'><span class="glyphicon glyphicon-search"></span></button>
        <div class="right marT15" style="position:relative">
            <button class="btn btn-sm btn-primary" ng-click='outExcel()'><img style="width:25px; height:20px;" src="img/excel.png">导出表格<span ng-style='loadStyle' class="outExcelLoad"><img  src="img/load.gif"></span>
            </button>
        </div>
        <br>
        <br>

      <div class="table-box">
        <table class="table table-bordered table-striped text-center bg-info marT15">
                <thead >
                <tr class="info">
                    <th class="text-center">序号</th>
                    <th class="text-center">剔重规则名称</th>
                    <th class="text-center">业务端名称</th>
                    <th class="text-center">业务类型名称</th>
                    <th class="text-center">序号剔重</th>
                    <th class="text-center">短信类型剔重</th>
                    <th class="text-center">接收号码剔重</th>
                    <th class="text-center">短信内容剔重</th>
                    <th class="text-center">剔重有效期（小时）</th>
                    <th class="text-center">状态</th>
                    <th class="text-center">说明</th>
                    <th class="text-center">操作</th>
                </tr>
                </thead>
                <tbody id="appList">
                <tr ng-repeat="item in result">
                    <td>{{$index+1}}</td>
                    <td class="w115">{{item.repeatRuleName}}</td>
                    <td class="w115">{{item.svrNodeName}}</td>
                    <td class="w115">{{item.serviceName}}</td>
                    <td class="w115">
                        <p ng-if='"1"==item.smSeq' >是</p>
                        <p ng-if='"0"==item.smSeq' >否</p></td>
                    <td class="w115">
                        <p ng-if='"1"==item.serviceCodeFlag' >是</p>
                        <p ng-if='"0"==item.serviceCodeFlag' >否</p></td>
                    <td class="w115">
                        <p ng-if='"1"==item.userFlag' >是</p>
                        <p ng-if='"0"==item.userFlag' >否</p></td>
                    <td class="w115">
                        <p ng-if='"1"==item.smFlag' >是</p>
                        <p ng-if='"0"==item.smFlag' >否</p></td>
                    </td>
                    <td style="min-width:125px">{{item.timeLen}}</td>
                    <td><p ng-if='"1"==item.status' >有效</p>
                        <p ng-if='"0"==item.status' >无效</p></td>
                    </td>
                    <td style="min-width: 200px; word-break: break-all;">{{item.desc}}</td>
                    <td style="min-width: 160px">
                        <a class="marR10" 
                           ng-click='changeStstus($index,item.repeatRuleId,item.status)'
                           ng-show="'0'===item.status">生效</a>
                        <a class="marR10" 
                           ng-click='changeStstus($index,item.repeatRuleId,item.status)'
                           ng-show="'1'===item.status">失效</a>
                        <a class="marR10" data-toggle="modal" data-target="#add1"  ng-click="editTr('修改',item.repeatRuleId)">修改</a>
                        <a data-toggle="modal" data-target="#delete" ng-click='delete(item.repeatRuleId,$index)'>删除</a></td>
                </tr>
               
                </tbody>
                <tfoot>
                  <tr>
                   <td><a class="glyphicon glyphicon-plus" data-toggle="modal" ng-click="editTr('添加')" data-target="#add1"></a></td>
                   <td></td>
                   <td></td>
                   <td></td>
                   <td></td>
                   <td></td>
                   <td></td>
                   <td></td>
                   <td></td>
                   <td></td>
                   <td></td>
                  </tr>
               </tfoot>
             
            </table>
        </div>


        <page></page>
        </div>                          
    </div>   
</div>
            <!--右侧内容结束-->
</div>
    
<!--添加程序弹窗-->
<div class="modal fade" id="add1" tabindex="-1" role="dialog" aria-labelledby="add11">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" >{{popup}}重复过滤信息</h4>
            </div>
            <div class="modal-body">
               <div class="row marB15"> 
                   
                   <div class="col-xs-6">
                           <label class="left">剔重规则名称：</label>
                           <input type="text" class="form-control line4 right" placeholder="" ng-model="addData.repeatRuleName">
                    </div>
                   
                   <div class="col-xs-6">
                       
                           <label class="left">业务端名称</label>
                           <select class="form-control serviceCode right line4"  
                           ng-model="addData.svrNode"
                           ng-change="getServiceCode()"
                           name="serviceCode">
                               <option value="">--请选择--</option>
                               <option value={{row.SVR_NODE}} ng-repeat="row in listData1">{{row.SVR_NODE_NAME}}</option>
                           </select>
                     
                   </div>
               </div>
               <div class="row marB15"> 
                   <div class="col-xs-6">
                      
                           <label class="left">短信类型名称</label>
                           <select class="form-control svrNode line4 right" ng-model="addData.serviceCode">
                               <option value="">--请选择--</option>
                               <option value={{row.serviceCode}} ng-repeat="row in serviceList">{{row.serviceName}}</option>
                           </select>
                     
                   </div>
                  <div class="col-xs-6" style="line-height: 25px;">
                      
                           <label class="left">重复时限：</label>
                           <label class="right">&nbsp;小时</label>
                           <input type="text" class="form-control timeLen line4 right" style="width:124px" 
                           onkeyup="this.value=this.value.replace(/\D/g,'')" 
                           oninput="if(parseInt(value)>100 || parseInt(value)<0)value=''"
                           placeholder="0~100" 
                           ng-model="addData.timeLen">
                           
                      
                   </div>

               </div>
               <div class="row marB15">
                   <div class="col-xs-6">
                    <label class="left">状态</label>
                    <select class="form-control status line4 right" ng-model="addData.status">
                        <option value="1" >有效</option>
                        <option value="0">无效</option>
                    </select>
                   </div>
                </div>
               <div class="row"><label class="col-xs-12"><span>剔重规则：</span></label></div>
               <div class="row marB15"> 
                   
                   <div class="col-xs-6">
                       <div class="checkbox">
                           <label>
                               <input type="checkbox" value="" ng-model="addData.smSeq" checked disabled>
                               序号剔重(必选)
                           </label>
                       </div>
                   </div>
                   <div class="col-xs-6">
                       <div class="checkbox">
                           <label>
                               <input type="checkbox" value="" ng-model="addData.serviceCodeFlag">
                               短信类型剔重
                           </label>
                       </div>
                   </div>
                   <div class="col-xs-6">
                       <div class="checkbox">
                           <label>
                               <input type="checkbox" value=""  ng-model="addData.userFlag">
                               接收号码剔重
                           </label>
                       </div>
                   </div>
                   <div class="col-xs-6">
                       <div class="checkbox">
                           <label>
                               <input type="checkbox" value="" ng-model="addData.smFlag" >
                               短信内容剔重
                           </label>
                       </div>
                   </div>
                   
               </div>
                
                <br>
               <div class="clearfix"> 
                   <span>
                       <label class="left"><span>规则说明 ：</span></label>
                        <textarea class="left form-control desc" ng-model="addData.desc"></textarea>
                   </span>
               </div>
              <br>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default btn-sm" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary btn-sm" ng-click='editSave()' >保存</button>
            </div>
        </div>
    </div>
</div>
<!-- 添加程序结束 -->
<!-- 参数添加结束 -->
<!-- 提示框 -->
<div class="modal fade" id="delete">  
  <div class="modal-dialog">  
    <div class="modal-content message_align">  
      <div class="modal-header">  
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>  
        <h4 class="modal-title">提示信息</h4>  
      </div>  
      <div class="modal-body">  
        <p>您确认删除吗？</p>  
      </div>  
      <div class="modal-footer">  
         <input type="hidden" id="url"/>  
         <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>  
         <a  ng-click="deleteTr()" class="btn btn-primary" data-dismiss="modal">确定</a>
      </div>  
    </div><!-- /.modal-content -->  
  </div><!-- /.modal-dialog -->  
</div><!-- /.modal -->                         
<!-- 提示框结束 -->
<!-- 加载框 -->
  <span class='loaded' ng-show='loaded'><img  src="img/load.gif"></span>
<!-- 加载框 完成-->